import socket

while True:
    msg=input("请输入命令: ")
    client = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
    client.connect(('192.168.0.114',3838))
    client.send(msg.encode('utf-8')) 
    data = client.recv(1024) 
    print(data.decode())
    client.close() 
